package samples.d2.parallels 
{
	import flash.filters.GlowFilter;
	import samples.BaseSample;
	import shapes.shapes2D.Dot;
	import shapes.shapes2D.Line;
	
	/**
	 * @author Nicolas Barradeau
	 * http://en.nicoptere.net
	 */
	public class Parallel0 extends BaseSample
	{
		
		private var d0:Dot;
		private var d1:Dot;
		
		private var d2:Dot;
		private var d3:Dot;
		
		private var line0:Line;
		private var line1:Line;
		public function Parallel0() 
		{
			
			filters = [new GlowFilter( color, 1, 12, 12, 2, 3 ) ];
			
			
			d0 = new Dot( 100, sh / 2 - 50 );
			d1 = new Dot( sw - 100, sh / 2 - 50 );
			
			d2 = new Dot( 100, sh / 2 + 50 );
			d3 = new Dot( sw - 100, sh / 2 +50 );
			
			line0 = new Line( d0, d1 );
			line1 = new Line( d2, d3 );
			
			graphics.lineStyle( 0, color );
			d0.draw( graphics );
			d1.draw( graphics );
			d2.draw( graphics );
			d3.draw( graphics );
			
			line0.draw( graphics );
			line1.draw( graphics );
			
		}
		
	}

}